﻿using System;
using System.Collections.Generic;
using System.Text;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace JYJ.AiYard.StationManagement.TvDigitalPay
{
    public class TvDigitalPay : Entity<long>, ICreationAudited, IModificationAudited, IDeletionAudited, IMustHaveTenant
    {
        public long Station_Id { get; set; }
        /// <summary>
        /// 场所名称
        /// </summary>
        public string Station_Name { get; set; }
        /// <summary>
        /// 单号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// 抬头
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 申请人编号
        /// </summary>
        public long UpuserId { get; set; }
        /// <summary>
        /// 申请人编号
        /// </summary>
        public string UpuserName { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string UpuserTrueName { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime? UpTime { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string plateNo { get; set; }
        /// <summary>
        /// 车牌颜色
        /// </summary>
        public int plateColor { get; set; }
        /// <summary>
        /// 车主姓名
        /// </summary>
        public string owner { get; set; }
        /// <summary>
        /// 进场时间
        /// </summary>
        public DateTime? inTime { get; set; }
        /// <summary>
        /// 出场时间
        /// </summary>
        public DateTime? outTime { get; set; }
        /// <summary>
        /// 进场通道
        /// </summary>
        public string inGate { get; set; }
        /// <summary>
        /// 出场通道
        /// </summary>
        public string outGate { get; set; }
        /// <summary>
        /// 扣款金额
        /// </summary>
        public decimal Amout { get; set; }
        /// <summary>
        /// 数字币扣款
        /// </summary>
        public decimal? digitalYuan { get; set; }
        /// <summary>
        /// 数币扣款状态
        /// </summary>
        public string digitalStatus { get; set; }
        /// <summary>
        /// 数币扣款请求时间
        /// </summary>
        public DateTime? digitalrequestTime { get; set; }
        /// <summary>
        /// 数币交易返回时间
        /// </summary>
        public DateTime? digitalresponseTime { get; set; }
        /// <summary>
        /// 数币交易时间
        /// </summary>
        public DateTime? digitalgmtTime { get; set; }
        /// <summary>
        /// 数币返回代码
        /// </summary>
        public string digitalreturnCode { get; set; }
        /// <summary>
        /// 数币返回消息
        /// </summary>
        public string digitalreturnMessage { get; set; }
        /// <summary>
        /// 无感扣款状态
        /// </summary>
        public string entityStatus { get; set; }
        /// <summary>
        /// 无感交易金额
        /// </summary>
        public decimal? entityRMB { get; set; }
        /// <summary>
        /// 无感交易请求时间
        /// </summary>
        public DateTime? entityrequestTime { get; set; }
        /// <summary>
        /// 无感交易返回时间
        /// </summary>
        public DateTime? entityresponseTime { get; set; }
        /// <summary>
        /// 无感交易时间
        /// </summary>
        public DateTime? entitygmtTime { get; set; }
        /// <summary>
        /// 无感返回代码
        /// </summary>
        public string entityreturnCode { get; set; }
        /// <summary>
        /// 无感返回消息
        /// </summary>
        public string entityreturnMessage { get; set; }

        /// <summary>
        /// 数币扣款
        /// </summary>
        public int isDigityPay { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public long? CheckuserId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckuserName { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckuserTrueName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string CheckStatus { get; set; }
        /// <summary>
        /// 审核意见
        /// </summary>
        public string CheckMemo { get; set; }

        /// <summary>
        /// 新单号
        /// </summary>
        public string newbillNo { get; set; }




        public int TenantId { get; set; }

        public DateTime CreationTime { get; set; }

        public long? CreatorUserId { get; set; }

        public long? LastModifierUserId { get; set; }

        public DateTime? LastModificationTime { get; set; }

        public bool IsDeleted { get; set; }

        public long? DeleterUserId { get; set; }

        public DateTime? DeletionTime { get; set; }
    }
    public class tVDIGITALPAYIds
    {
        public long Id { get; set; }
    }
    public class tVDIGITALPAYMAIN
    {
        /// <summary>
        /// 记录编号
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 场所编号
        /// </summary>
        public long Station_Id { get; set; }
        /// <summary>
        /// 场所名称
        /// </summary>
        public string Station_Name { get; set; }
        /// <summary>
        /// 单号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// 抬头
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string UpuserTrueName { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime UpTime { get; set; }
        /// <summary>
        /// 扣款金额
        /// </summary>
        public decimal Amout { get; set; }
        /// <summary>
        /// 数币扣款金额
        /// </summary>
        public decimal digitalAmountoK { get; set; }
        /// <summary>
        /// 数币扣款金额
        /// </summary>
        public decimal digitalAmountfail { get; set; }
        /// <summary>
        /// 无感扣款金额
        /// </summary>
        public decimal entityAmountoK { get; set; }
        /// <summary>
        /// 无感扣款金额
        /// </summary>
        public decimal entityAmountfail { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckuserTrueName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string CheckStatus { get; set; }
        /// <summary>
        /// 审核意见
        /// </summary>
        public string CheckMemo { get; set; }
        /// <summary>
        /// 是否展开
        /// </summary>
        public bool Eexpand { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string payStatus { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 数币扣款
        /// </summary>
        public int isDigityPay { get; set; }
        /// <summary>
        /// 新单号
        /// </summary>
        public string newbillNo { get; set; }
    }

    public class TvDigitalPayDto
    {

        /// <summary>
        /// Id
        /// </summary>
        public long? Id { get; set; }



        public long Station_Id { get; set; }
        /// <summary>
        /// 场所名称
        /// </summary>
        public string Station_Name { get; set; }
        /// <summary>
        /// 单号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// 抬头
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 申请人编号
        /// </summary>
        public long UpuserId { get; set; }
        /// <summary>
        /// 申请人编号
        /// </summary>
        public string UpuserName { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string UpuserTrueName { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime? UpTime { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string plateNo { get; set; }
        /// <summary>
        /// 车牌颜色
        /// </summary>
        public int plateColor { get; set; }
        /// <summary>
        /// 车主姓名
        /// </summary>
        public string owner { get; set; }
        /// <summary>
        /// 进场时间
        /// </summary>
        public DateTime? inTime { get; set; }
        /// <summary>
        /// 出场时间
        /// </summary>
        public DateTime? outTime { get; set; }
        /// <summary>
        /// 进场通道
        /// </summary>
        public string inGate { get; set; }
        /// <summary>
        /// 出场通道
        /// </summary>
        public string outGate { get; set; }
        /// <summary>
        /// 扣款金额
        /// </summary>
        public decimal Amout { get; set; }
        /// <summary>
        /// 数字币扣款
        /// </summary>
        public decimal? digitalYuan { get; set; }
        /// <summary>
        /// 数币扣款状态
        /// </summary>
        public string digitalStatus { get; set; }
        /// <summary>
        /// 数币扣款请求时间
        /// </summary>
        public DateTime? digitalrequestTime { get; set; }
        /// <summary>
        /// 数币交易返回时间
        /// </summary>
        public DateTime? digitalresponseTime { get; set; }
        /// <summary>
        /// 数币交易时间
        /// </summary>
        public DateTime? digitalgmtTime { get; set; }
        /// <summary>
        /// 数币返回代码
        /// </summary>
        public string digitalreturnCode { get; set; }
        /// <summary>
        /// 数币返回消息
        /// </summary>
        public string digitalreturnMessage { get; set; }
        /// <summary>
        /// 无感扣款状态
        /// </summary>
        public string entityStatus { get; set; }
        /// <summary>
        /// 无感交易金额
        /// </summary>
        public decimal? entityRMB { get; set; }
        /// <summary>
        /// 无感交易请求时间
        /// </summary>
        public DateTime? entityrequestTime { get; set; }
        /// <summary>
        /// 无感交易返回时间
        /// </summary>
        public DateTime? entityresponseTime { get; set; }
        /// <summary>
        /// 无感交易时间
        /// </summary>
        public DateTime? entitygmtTime { get; set; }
        /// <summary>
        /// 无感返回代码
        /// </summary>
        public string entityreturnCode { get; set; }
        /// <summary>
        /// 无感返回消息
        /// </summary>
        public string entityreturnMessage { get; set; }

        /// <summary>
        /// 数币扣款
        /// </summary>
        public int isDigityPay { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public long? CheckuserId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckuserName { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckuserTrueName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string CheckStatus { get; set; }
        /// <summary>
        /// 审核意见
        /// </summary>
        public string CheckMemo { get; set; }
        /// <summary>
        /// 出场记录编号
        /// </summary>
        public int RecordId { get; set; }

        /// <summary>
        /// 新单号
        /// </summary>
        public string newbillNo { get; set; }


    }
}
